14. counter usage

你好。
Hello.

在本教程中,我们将讨论计数器。
In this tutorial, we will talk about the counters.

那么我们就从计数器的用法开始吧。
Then let's start with the counter usage.

我们如何在这里使用计数器指令?
How can we use counter instruction into here?

我左键单击两次,我将选择线圈输出。
I left click two twice and I will select and coil output.

这是我的柜台。
And this is my counter.

例如,我想使用第一个计数器计数器为零。
For example, I want to use first counter counter zero.

好的。
OK.

例如,我会数五次,K 五次。
And I will count, for example, five times and K five.

好的。
OK.

并在此处插入一行。
And insert a line to here.

当计数器正常并且我们的计数完成并且我想激活白三并进入这里时,我将使用LDM,例如60来计数。
And when the counter is OK and when our counting is finished and I want to activate White three and into here, I will use LDM, for example, 60 to count.

但如果这是活跃的,它可能会一直计数。
But if this is active, it may count up always.

但我们来测试一下。
But let's test it.

首先,在这里,我将添加我的行。
First of all, into here, I will add my line.

好的。
Okay.

好吧。
And OK.

和。
And.

但这是把它放在这里的最简单的方法,但不,这对我们来说并不多。
But it is easiest way to put it here, but no, it is not lot to us.

我将在这里测试温暖智能。
I will test warm smart into here.

我会直接选择。
I will select directly.

为了做到这一点。
To make it.

好的,棒极了。
OK, very good.

它会自动分配高线,然后我们就准备好了,然后我就转换了我的项目。
It's automatically assigned tall line and then we are ready, and then I'm converted my project.

然后我们可以将主程序发送给policy。
And then we can send the main program to policy.

我们需要再等一下。
We need to wait a little bit more.

当我说是的时候。
When I say yes.

然后就差不多完成了。
Then it is almost finished then.

好吧,我会说是的。
OK, I will say yes.

完成后关闭监控模式,我们来测试一下我们的计数器是否计数。
Completed and close it and monitored mode, let's test is our counter counting or not.

第五次太多了,但是好吧,我只想说设备测试和切换力。
And fifth time it is too much, but OK, I will just say to device test and toggle force.

然后再次切换一次,然后切换假和两次。
Then it is one toggle for again and toggle false and two.

再次三,我将在这里把我的专栏写为零。
And again and three, and I will write here my column to zero.

好的。
OK.

现在我在这里说两个,例如,48。
And now I will say two here, for example, and 48.

好的。
OK.

但我们需要保存。
But we need to save.

它是十进制的。
It is decimal.

但设备没问题,我会说数到零。
But the device is OK, and I will say count to zero.

在这里我要说的是七,那么现在就改变了,好吗?
And here I will say for the seven, then it's changed now, OK?

计数器归零装置,可以吗?
Counter zero device, will you?

我将其更改为 48 并切换为 false。
I change it to 48 and toggle false.

抱歉,我直接启动计数器零。
Sorry, I directly activate counter zero.

因此,我会写下你的48。
Because of this, I will write your 48.

想象一下你的。
Imagine yours.

这是你的传感器。
This is your sensor.

然后传感器进行第八次检测,然后。
Then sensor is detected for the eighth time and then.

您的传感器现在检测到 49 次,好的,您的传感器最多检测到 50 次,当一个传感器检测到 50 次时,我将首先将其切换。
Your sensor is detecting now 49, OK, and your sensor is detect up to 50 times, and when one sensor is detected 50 times, I will make it toggled first.

这将关闭。
This will be off.

好的。
OK.

这是关闭的,但计数器零接触仍然保留。
This is off, but counter zero contact is still remain.

然后我们需要重置它。
Then we need to reset it.

好的?
OK?

例如,我们如何重置它?
For example, how can we reset it?

我们可以直接使用它,重置指令也可以。
We can directly use it, reset instruction or we can.

把它关掉,但是。
Make it off, but.

重置是唯一的方法,我在想另一件事,你如何重置折扣收入,因为现在是 50,你可以改变布景,也可以改变电影部分。
Reset is the only way another thing I'm thinking, how can you reset discount revenue because this is now 50, you can change the set, but also the movie section.

但是让我们测试一下,因为它是,我会在这里,例如,零,我会说零。
But let's test it because it is and I will it right here, for example, zero and I will say said zero.

但你会说它是零。
But you will say it is zero.

好的,没有达到设定值,但是卡的触点仍然存在。
OK, not in the set value, but the contact of the card is still remain.

首先,我将进入模式并进入此处。
So first of all, I will go to mode and into here.

我会插入一行,我会的。
I will insert a line and I will.

上午八点六十一点。
Eight am sixty one.

这是复位计数器将计数器归零。
This is the reset counter reset counter zero.

好的?
OK?

这是计时器的第一件事。
This is the first thing with the timer.

例如,如果您激活定时器 50 的触点,例如零定时器变为零或定时器正在重置。
If you activate the contact of the timer 50, for example, like zero timer goes to zero or timer is resetting.

但是计数器,我们需要重置计数器。
But the counter, we need to reset the counter.

好的?
OK?

另外,我将使用我的特殊时钟时间位。
Also, I will use this my special clock time bits.

我想用它,例如,也许100毫秒。
I want to use it, for example, maybe 100 milliseconds.

这是八千零一十三。
This is eight thousand thirteen.

我们可以在这里使用它。
We can use it to here.

我们去这里吧。
Let's go here and am.

我们可以使用 2013 年来增加计时器,我将转换我的项目,并将此项目更改发送到策略。
A 2013 we can use to increase the timer, and I will convert my project and I will send this project changes to policy.

好的,现在我将继续说“是”,然后就完成并关闭了。
OK, now I will continue with say yes, and it's completed and close.

现在我们可以监控了。
And now we can monitor.

好的,您会看到增加了 13、12、13 和 14,目标是 2013 年,那是什么?
OK, you will see it is an increase increasing 13, 12 and 13 and 14 with the aim a 2013, what was it?

它是一秒时钟脉冲和内部继电器或空间继电器。
It is one second clock pulse and internal relay or spatial relay.

每一秒你都会看到一个时钟,实时时钟以及 30 和 31。
Each one second you will see like a clock, real time clock and 30 and 31.

它正在递增,因为这是半秒手臂和半秒的原因。
It is incrementing because of why this is half second arm and half second of one.

这是开启的。
This is on.

它会增加或增加这些计数器数据。
It goes in increasing or incrementing these counter data.

好的。
OK.

四到五、四到六、七、八、九和五十。
Four to five and four to six and seven and eight and nine and 50.

当现在为 50 时,它现在不会增加,因为我们达到了设定的音量和计数器设置。
When this is 50 now, it is not incrementing now because we reached the set volume and counter set.

它达到了我们的数据 50,我们有一个来自“为什么零零三”的输出,然后如果我重置我的计数器目标六十一,如果您用设备品味切换力激活,则计数器值为零。
It is reach to our data 50 and we have an output from the why zero zero three, then if I reset my counter aim sixty one, if you activate with the device taste toggle force, then counter value is zero.

现在你可以从这里看到它是零,但它没有增加,为什么?
Now you can see it from here it is zero, but it is not incrementing why?

因为六一正在重置这个计数器。
Because six one is resetting this counter.

如果我去这里执行此操作并切换暂停,如果我成功了,那么您会看到计数器您正在增加的内容,以便我们可以使用空间位置。
What you always if I go to here and do this and toggle pause, if I make it off, then you will see counter what you is incrementing so we can use the spatial place.

我们已经了解到这些都是由三菱之前定义的。
Already we learn these are all to define previously defined by the Mitsubishi.

这就是我们如何使用计数器计数来归零一二三或者我们如何定义计数器数据?
And this is how can we use a counter count to zero one two three or how can we define a counter data?

但计数器不仅仅是这样,还有用于编码器和计数高速传感器输入脉冲的高速计数器,我们将在下一个教程中使用它们。
But also counters are not just like this and high speed counters for the encoders and for the count high speed sensor input pulses and we will use them all into next tutorials.

但是高速计数器或 32 位计数器是有点深的信息,也许我们可以暂时停留在这一点上,我们将继续学习编程指令的基础知识并进入下一节和教程。
But high speed counters or 32bit counters are a little bit deep informations and maybe for a moment we can stay at this point and we will continue to learn basics of the programming instructions and into next sections and tutorials.

我们将看到有关 Bishop HPLC 说明的更多信息,但现在我已经完成了本教程。
We will see a little bit further information about the Bishop HPLC instructions, but now I am finished for this tutorial.

再见。
See you into an extra of.